<template>
  <div class="wrapper">


  <swiper :options="swiperOption">
    <!-- slides -->
    <swiper-slide>
      <img  class="swiper-img" src="http://img1.qunarzz.com/piao/fusion/1802/42/7c92b9a381e46402.jpg_640x200_1cdce2a4.jpg" alt="">
    </swiper-slide>
    <swiper-slide>
      <img  class="swiper-img" src="http://img1.qunarzz.com/piao/fusion/1801/1a/94428c6dea109402.jpg_640x200_2cf590d8.jpg" alt="">
    </swiper-slide>
    <!-- Optional controls -->
    <div class="swiper-pagination"  slot="pagination"></div>

  </swiper>
  </div>
</template>

<script>
  export default {
    name: 'carrousel',
    data() {
      return {
        swiperOption: {
          pagination: {
            el: '.swiper-pagination'
          },
          loop: true

        }
      }
    }


  }
</script>

<style lang="stylus" scoped>

  /*样式穿透*/
  .wrapper >>> .swiper-pagination-bullet-active
     background: #fff !important

  .wrapper
    overflow: hidden /*内容会被修剪，并且其余内容是不可见的*/
    width: 100%
    height: 0
    padding-bottom: 31.2%/*高宽比*/
    background: #eee
    .swiper-img
      width: 100%

</style>
